/*!
  @file   MathUtility.hpp
  @author Jared Marsau
  @author Hamza M. Hutchinson
  @date   03/01/2009
  @brief  
    Common math functions.
*/

#include "MathUtility.hpp"

#include <cmath>

namespace MathUtility
{
  bool FloatEquals    (float a, float b, float tolerance)
  {
    return (abs(a - b) <= tolerance);
  }

  bool FloatEqualsZero(float a, float tolerance)
  {
    return (abs(a) <= tolerance);
  }
     
}//namespace MathUtility
